package com.ajieee.merge.mapper;

import com.ajieee.merge.entity.finance.po.StockInfoPO;
import com.ajieee.merge.enums.finance.Exchange;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @author ajieee
 * @date 2025-10-26
 */
public interface StockInfoMapper extends BaseMapper<StockInfoPO> {

	default void deleteByExchange(Exchange exchange) {
		delete(new LambdaQueryWrapper<StockInfoPO>().eq(StockInfoPO::getExchange, exchange));
	}
}
